package com.jt.tenant.dialog;

import android.content.Context;
import android.graphics.drawable.AnimationDrawable;
import android.widget.ImageView;

import com.jt.tenant.R;

/**
 * Created by Administrator on 2016/2/23.
 */
public class LoadDialog extends JTDialog {

    private AnimationDrawable animationDrawable;

    public LoadDialog(Context context) {

        super(context);

        setContentView(R.layout.dialog_load);

        animationDrawable = (AnimationDrawable) ((ImageView)findViewById(R.id.load_image)).getDrawable();

    }

    @Override
    protected void onStart() {

        super.onStart();

        animationDrawable.start();

    }

    @Override
    protected void onStop() {

        super.onStop();

        animationDrawable.stop();

    }

}
